// import LoadableComponent from "@/utils/loadable" // 懒加载组件
import home from '@/views/home'
import antd from '@/views/antd'
import mobx from '@/views/mobx'
const router = [
    {
        title:"首页",
        icon:"HomeOutlined",
        path:"/",
        component:home
        // component:()=> import('@/views/home')  不能这样写，要类型转换错误
    },
    {
        title:"mobx",
        icon:"LineChartOutlined",
        path:"/mobx",
        component:mobx
        // component:LoadableComponent(()=>import('@/views/mobx'))
    },
    {
        title:"antd",
        icon:"AntDesignOutlined",
        path:"/antd",
        component:antd,
        // component:LoadableComponent(()=>import('@/views/antd')),
        childern:[
        ]
    },
   
]

export default router;